package cate.common.table.farm.dailyfb;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import cate.common.table.d.GDDailyFb;

public class DailyFbCombatRow extends ERow {

    /** 类型 */
    public int type;
    /** 节点名称 */
    public String name;
    /** 第几关 */
    public int combatNum;
    /** 开启等级 */
    public int levelReq;
    /** 开启战力 */
    public long powerReq;
    /** 首通奖励 */
    public String rewardFirstCode;
    /** 扫荡奖励 */
    public String rewardSwapCode;
    /** 怪物一方实例ID */
    public String instanceId;
    /** 扫荡价格[虽然表里名字是扫荡价格，但是其实也是挑战价格] */
    public String challengeCostCode;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID");
        this.type = xrw.getInteger("类型", GDDailyFb.Type.DEFAULT);
        this.name = xrw.getString("节点名称", "节点名称");
        this.combatNum = xrw.getInteger("第几关", 1);
        this.levelReq = xrw.getInteger("开启等级", 1);
        this.powerReq = xrw.getLong("开启战力", 0L);
        this.rewardFirstCode = xrw.getString("首通奖励");
        this.rewardSwapCode = xrw.getString("扫荡奖励");
        this.instanceId = xrw.getString("怪物配置", "");
        this.challengeCostCode = xrw.getString("扫荡价格");
    }
}
